package highj;

public class CPU {
private CPU(String n,int c,int p) {
	Name=n;
	coreNum=c;
	price=p;
}
public void cpuwork() {
	System.out.println("cpuwork");
}
public String getName() {
	return Name;
}
public void setName(String name) {
	Name = name;
}
public int getCoreNum() {
	return coreNum;
}
public void setCoreNum(int coreNum) {
	this.coreNum = coreNum;
}
public int getPrice() {
	return price;
}
public void setPrice(int price) {
	this.price = price;
}
private String Name;
private int coreNum;
private int price;
public static CPU intel=new CPU("intel",10001,1300);
public static CPU AMD=new CPU("AMD",93781,970);

}
